package com.xdb.sqlparser.dialect.mysql.ast.statement;

import com.xdb.sqlparser.ast.SQLExpr;
import com.xdb.sqlparser.ast.SQLName;
import com.xdb.sqlparser.dialect.mysql.visitor.MySqlASTVisitor;

public class MySqlSetPasswordStatement extends MySqlStatementImpl {

	private SQLName user;
	private SQLExpr password;

	public void accept0(MySqlASTVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, user);
			acceptChild(visitor, password);
		}
		visitor.endVisit(this);
	}

	public SQLName getUser() {
		return user;
	}

	public void setUser(SQLName user) {
		if (user != null) {
			user.setParent(this);
		}

		this.user = user;
	}

	public SQLExpr getPassword() {
		return password;
	}

	public void setPassword(SQLExpr password) {
		if (password != null) {
			password.setParent(this);
		}
		this.password = password;
	}

}
